package com.usian.pojo.dep;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("dep")
public class Dep implements Serializable {
    @TableId(value="did", type= IdType.AUTO)
    private Integer did;

    @TableField("dname")
    private String dname;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("creation_time")
    private Date creationTime;
}
